<?php

class SupplierController extends BaseController
{
	public $restful = true;

	public function getIndex()
	{
		$suppliers = Supplier::all();

		return Response::json($suppliers);
	}

	public function getFind($id)
	{
		$supplier = Supplier::find($id);

		return Response::json($supplier);
	}
}